Optimal. Leaf size=256 \[ -\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac {i \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}+\frac {i \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}-\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}+\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 256, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 9, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {52, 65, 246,
217, 1179, 642, 1176, 631, 210} \begin {gather*} -\frac {i \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}+\frac {i \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac {i \log \left (\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt {2}}+\frac {i \log \left (\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}+1\right )}{2 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 210
Rule 217
Rule 246
Rule 631
Rule 642
Rule 1176
Rule 1179
Rubi steps
\begin {align*} \int \frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}} \, dx &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+\frac {1}{2} a \int \frac {1}{(a-i a x)^{3/4} \sqrt [4]{a+i a x}} \, dx\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+2 i \text {Subst}\left (\int \frac {1}{\sqrt [4]{2 a-x^4}} \, dx,x,\sqrt [4]{a-i a x}\right )\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+2 i \text {Subst}\left (\int \frac {1}{1+x^4} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+i \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )+i \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}+\frac {1}{2} i \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )+\frac {1}{2} i \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )-\frac {i \text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}-\frac {i \text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}+\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}+\frac {i \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}-\frac {i \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}\\ &=-\frac {i \sqrt [4]{a-i a x} (a+i a x)^{3/4}}{a}-\frac {i \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}+\frac {i \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{\sqrt {2}}-\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}-\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}+\frac {i \log \left (1+\frac {\sqrt {a-i a x}}{\sqrt {a+i a x}}+\frac {\sqrt {2} \sqrt [4]{a-i a x}}{\sqrt [4]{a+i a x}}\right )}{2 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.34, size = 111, normalized size = 0.43 \begin {gather*} \frac {\sqrt [4]{-i+x} \sqrt [4]{a-i a x} \left ((-i+x)^{3/4} \sqrt [4]{i+x}+i \tan ^{-1}\left (\frac {\sqrt [4]{i+x}}{\sqrt [4]{-i+x}}\right )+i \tanh ^{-1}\left (\frac {\sqrt [4]{i+x}}{\sqrt [4]{-i+x}}\right )\right )}{\sqrt [4]{i+x} \sqrt [4]{a+i a x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.43, size = 479, normalized size = 1.87
method | result | size |
risch | \(\frac {i \left (x -i\right ) \left (x +i\right ) \left (-a \left (i x -1\right )\right )^{\frac {1}{4}}}{\left (i x -1\right ) \left (a \left (i x +1\right )\right )^{\frac {1}{4}}}-\frac {\left (\frac {\RootOf \left (\textit {\_Z}^{2}-i\right ) \ln \left (-\frac {\left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{2}-i\right ) x^{2}+i \RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {3}{4}}+x^{3}+i \sqrt {-x^{4}-2 i x^{3}-2 i x +1}\, x +2 i \RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}} x +2 i x^{2}-\sqrt {-x^{4}-2 i x^{3}-2 i x +1}-\RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}}-x}{\left (i x -1\right )^{2}}\right )}{2}+\frac {i \RootOf \left (\textit {\_Z}^{2}-i\right ) \ln \left (-\frac {i \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}} \RootOf \left (\textit {\_Z}^{2}-i\right ) x^{2}-2 \RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}} x +x^{3}+\RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {3}{4}}-i \sqrt {-x^{4}-2 i x^{3}-2 i x +1}\, x -i \RootOf \left (\textit {\_Z}^{2}-i\right ) \left (-x^{4}-2 i x^{3}-2 i x +1\right )^{\frac {1}{4}}+2 i x^{2}+\sqrt {-x^{4}-2 i x^{3}-2 i x +1}-x}{\left (i x -1\right )^{2}}\right )}{2}\right ) \left (-a \left (i x -1\right )\right )^{\frac {1}{4}} \left (-\left (i x -1\right )^{3} \left (i x +1\right )\right )^{\frac {1}{4}}}{\left (i x -1\right ) \left (a \left (i x +1\right )\right )^{\frac {1}{4}}}\) | \(479\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.74, size = 194, normalized size = 0.76 \begin {gather*} \frac {\sqrt {i} a \log \left (\frac {\sqrt {i} {\left (a x - i \, a\right )} + {\left (i \, a x + a\right )}^{\frac {3}{4}} {\left (-i \, a x + a\right )}^{\frac {1}{4}}}{x - i}\right ) - \sqrt {i} a \log \left (-\frac {\sqrt {i} {\left (a x - i \, a\right )} - {\left (i \, a x + a\right )}^{\frac {3}{4}} {\left (-i \, a x + a\right )}^{\frac {1}{4}}}{x - i}\right ) + \sqrt {-i} a \log \left (\frac {\sqrt {-i} {\left (a x - i \, a\right )} + {\left (i \, a x + a\right )}^{\frac {3}{4}} {\left (-i \, a x + a\right )}^{\frac {1}{4}}}{x - i}\right ) - \sqrt {-i} a \log \left (-\frac {\sqrt {-i} {\left (a x - i \, a\right )} - {\left (i \, a x + a\right )}^{\frac {3}{4}} {\left (-i \, a x + a\right )}^{\frac {1}{4}}}{x - i}\right ) - 2 i \, {\left (i \, a x + a\right )}^{\frac {3}{4}} {\left (-i \, a x + a\right )}^{\frac {1}{4}}}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt [4]{- i a \left (x + i\right )}}{\sqrt [4]{i a \left (x - i\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a-a\,x\,1{}\mathrm {i}\right )}^{1/4}}{{\left (a+a\,x\,1{}\mathrm {i}\right )}^{1/4}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________